determine the greatest speed